package com.yckj.lawyermanager.dongao.controller;

/*
 *英才汇硕信息科技有限公司 拥有本软件版权 2021 并保留所有权利。
 *Copyright 2021,YCHS Information&Science Technilogy Co.,Ltd,
 *All rights reserved
package com.yckj.lawyermanager.dongao.controller;/**
 *
 *@author ssy
 *@version 1.0
 *@data 2023/1/2
 */

import com.yckj.lawyermanager.dongao.entity.Lawyer;
import com.yckj.lawyermanager.dongao.service.LawyerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.xml.ws.RequestWrapper;

/**
 * 律师控制器
 */
@Controller
public class LawyerController {
    @Autowired
    LawyerService lawyerService;
    @RequestMapping("/addLawyer")
    public String addLawyer(Lawyer lawyer){
        lawyerService.addLawyer(lawyer);
        //代表一个网页
        return "success";
    }
}
